#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL.Math;
namespace Cephei.QL.Math.Optimization
{
     // <summary> 
	// !  Cost function abstract class for optimization problem
	// </summary>
    [Guid ("3A9553B1-CC7E-4f3a-8B1C-E1339AC073F4"),ComVisible(true)]
	public interface ICostFunction 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Double FiniteDifferenceEpsilon {get;}
        
		 ICostFunction Gradient(Cephei.QL.Math.IArray grad, Cephei.QL.Math.IArray x);
        
		 Double Value(Cephei.QL.Math.IArray x);
        
		 Double ValueAndGradient(Cephei.QL.Math.IArray grad, Cephei.QL.Math.IArray x);
    }

    // <summary> 
	// !  Cost function abstract class for optimization problem Factory
	// </summary>
   	[ComVisible(true)]
    public interface ICostFunction_Factory // : Collection_Factory<ICostFunction, ICell<ICostFunction>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
    }
}

